package com.dhcc.bpm.modules.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName ProductApi
 * @Description 产品表实体类
 * @Author daina
 * @Date 2020/2/25 15:22
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_product_api")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ProductApi对象", description = "产品API关联表")
public class ProductApi extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 关联产品ID
     */
    @ApiModelProperty(value = "产品Id")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private Long productId;
    /**
     * 关联API ID
     */
    @ApiModelProperty(value = "API Id")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private Long apiId;

    @ApiModelProperty(value = "审核状态")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private Integer status;

    /**
     * 导出数据标识
     */
    @ApiModelProperty(value = "导出数据标识")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private String expSeq;
}
